﻿using CefSharp;
using CefSharp.Handler;

namespace Web_rongmeiti_sys.PublishToRongMeiTi
{
    /// <summary>
    /// 拦截请求
    /// </summary>
    public class MyRequestHandler : RequestHandler
    {
        /// <summary>
        /// 谁在调用？
        /// </summary>
        /// 创建时间：2023-6-16 09:15:02，作者：王浩力
        public string Cnpc_account { get; set; }

        protected override IResourceRequestHandler GetResourceRequestHandler(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, bool isNavigation, bool isDownload, string requestInitiator, ref bool disableDefaultHandling)
        {
            LogHelpter.AddLog("GetResourceRequestHandler请求url：" + request.Url, null, "MyRequestHandler");
             
            return new MyResourceRequestHandler();
        }

    }


}
